package com.cn.Mapper;

import com.cn.Domain.OrderSetting;
import com.cn.Domain.OrderSettingExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface OrderSettingMapper {
    long countByExample(OrderSettingExample example);

    int deleteByExample(OrderSettingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OrderSetting record);

    int insertSelective(OrderSetting record);

    List<OrderSetting> selectByExample(OrderSettingExample example);

    OrderSetting selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OrderSetting record, @Param("example") OrderSettingExample example);

    int updateByExample(@Param("record") OrderSetting record, @Param("example") OrderSettingExample example);

    int updateByPrimaryKeySelective(OrderSetting record);

    int updateByPrimaryKey(OrderSetting record);

    public long findCountByOrderDate(Date orderDate);
    public long findCountByOrderId(Integer id);
    public List<OrderSetting> getOrderSettingByMonth(Map map);

    public void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);
}